import request from '@/sheep/request';

export default {
	//查看知情同意书
	seeAgreeBook_api: (params) =>
		request({
			url: 'second.letter/detail',
			method: 'GET',
			params,
		}),
	//上传签名
	saveSign_api: (data) =>
		request({
			url: 'second.Letter/saveSign',
			method: 'POST',
			data,
		}),
	//就诊人列表
	patientList_api: (params) =>
		request({
			url: 'second.patient/index',
			method: 'GET',
			params,
		}),
	//获取uid
	getUniqId_api: (params) =>
		request({
			url: 'second.letter/getUniqId',
			method: 'GET',
			params,
		}),

	//添加就诊人
	addPatient_api: (data) =>
		request({
			url: 'second.patient/add',
			method: 'POST',
			data,
		}),
	//编辑就诊人
	editPatient_api: (data) =>
		request({
			url: 'second.patient/edit',
			method: 'POST',
			data,
		}),

	//上传签名
	saveSign: (data) =>
		request({
			url: 'second.Letter/saveSign',
			method: 'POST',
			data,
		}),

	//分享赠与
	shareWine: (data) =>
		request({
			url: 'wines.wines/getShareId',
			method: 'POST',
			data,
		}),
	//分享赠与
	getShareInfo: (data) =>
		request({
			url: 'wines.wines/getShareInfo',
			method: 'POST',
			data,
		}),
	//酒库领取订单记录列表
	claimOrdersRecord: (params) =>
		request({
			url: 'wines.wines/orders',
			method: 'GET',
			params,
		}),
	//酒库赠与成功记录
	sharesOrdersRecord: (params) =>
		request({
			url: 'wines.wines/shares',
			method: 'GET',
			params,
		}),

	//领取分享的酒
	getShareWines: (params) =>
		request({
			url: 'wines.wines/shareDraw',
			method: 'GET',
			params,
		}),

};